import { useRoute, useRouter } from 'vue-router';
// 获取查询字符串参数
export const useQuery = () => {
    const route = useRoute();
    const { query } = route;
    return query
}
// 获取动态路由参数
export const useParams = () => {
    const route = useRoute();
    const { params } = route;
    return params
}
// 获取路由对象router
export const $useRouter = () => {
    const router = useRouter();
    return router
}